projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bba474
)
xend: Remove redundant check of maximum memory size.
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 12 Feb 2008 10:19:12 +0000
(10:19 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 12 Feb 2008 10:19:12 +0000
(10:19 +0000)
Currently, a wrong value of maximum memory size is checked by
_safe_set_memory() and _memory_sanity_check().
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendDomainInfo.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendDomainInfo.py
b/tools/python/xen/xend/XendDomainInfo.py
index 7c8e0975a41bd47d49c39dac08af0e1f13df38c5..c1cb6aa998a21202a67df2e6f81336c6d43d4348 100644
(file)
--- a/
tools/python/xen/xend/XendDomainInfo.py
+++ b/
tools/python/xen/xend/XendDomainInfo.py
@@
-707,9
+707,6
@@
class XendDomainInfo:
log.debug("Setting memory maximum of domain %s (%s) to %d MiB.",
self.info['name_label'], str(self.domid), limit)
- if limit <= 0:
- raise XendError('Invalid memory size')
-
MiB = 1024 * 1024
self._safe_set_memory('memory_static_max', limit * MiB)